package android.tfpedia;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Typeface;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;


public class Pedia extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Typeface tf = Typeface.createFromAsset(getAssets(), "fonts/tf2build.ttf");
        
        ((TextView) findViewById(R.id.txtClasses)).setTypeface(tf);
        ((TextView) findViewById(R.id.txtWeapons)).setTypeface(tf);
        ((TextView) findViewById(R.id.txtItems)).setTypeface(tf);
        ((TextView) findViewById(R.id.txtAbout)).setTypeface(tf);
        
        Log.v("OnCreate()", "Created. :)");
    }
    
    
    public void myClickHandler(View view) {
    	
		switch (view.getId()) {
		case R.id.txtClasses:
			//Log.v("myClickHandler()", "View class information");
			Intent myIntent = new Intent(view.getContext(), ClassSelect.class);
			startActivityForResult(myIntent, 0);
			
			break;
		//case R.id.txtAbout:
			//Log.v("myClickHandler()", "About stuff");
			//Intent myIntent = new Intent(view.getContext(), AboutTF2.class);
			//startActivityForResult(myIntent, 0);
			//break;
		default:
			Log.v("myClickHandler()", "what did you click o_O");
		}
    }

}